Speeding up the AIFV-2 dynamic programs by two orders of magnitude using Range Minimum Queries
نویسندگان
چکیده
AIFV-2 codes are a new method for constructing lossless memoryless sources that provide better worst-case redundancy than Huffman codes. They do this by using two code trees instead of one and also allowing some bounded delay in the decoding process. Known algorithms AIFV-codes iterative; at each step they replace current tree pair with “better” one. The state art performing replacement is Dynamic Programming (DP) use O(n5) time to fill tables, size O(n3) (where n number different characters source). This paper describes how reduce filling DP tables orders magnitude, down O(n3). It does introducing grouping technique permits separating Θ(n3)-space into Θ(n) groups, O(n2), then Two-Dimensional Range-Minimum Queries (RMQs) group's table entries O(n2) time.
منابع مشابه
Speeding Up Range Queries For Brain Simulations
Neuroscientists increasingly use computational tools to build and simulate models of the brain. The amounts of data involved in these simulations are immense and efficiently managing this data is key. One particular problem in analyzing this data is the scalable execution of range queries on spatial models of the brain. Known indexing approaches do not perform well, even on today’s small models...
متن کاملTwo-Dimensional Range Minimum Queries
We consider the two-dimensional Range Minimum Query problem: for a static (m × n)-matrix of size N = mn which may be preprocessed, answer on-line queries of the form “where is the position of a minimum element in an axis-parallel rectangle?”. Unlike the onedimensional version of this problem which can be solved in provably optimal time and space, the higher-dimensional case has received much le...
متن کامل2 Inductively Speeding Up Logic Programs
This paper presents a speed-up learning method for logic programs, which accelerates a program by composing macro clauses based on partial structures of proof trees. Many systems have been proposed for composing useful macros, e.g., some of them select macros that connects two peaks in a heuristic function. Another employs heuristics that select useful macros. Although they work well in some do...
متن کاملSpeeding-Up Fractal Image Compression by Using Classification Range Blocks
In fractal compression technique, an image is partitioned into sub blocks called range blocks, each of which is encoded by matching it (after an appropriate affine transformation) with a block chosen from a large pool of domain blocks, which is constructed from the image itself. The problem is that the encoding is very time consuming because of the need to search in a very large domain pool. Ou...
متن کاملEncoding Range Minimum Queries
We consider the problem of encoding range minimum queries (RMQs): given an array A[1..n] of distinct totally ordered values, to pre-process A and create a data structure that can answer the query RMQ(i, j), which returns the index containing the smallest element in A[i..j], without access to the array A at query time. We give a data structure whose space usage is 2n + o(n) bits, which is asympt...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
ژورنال
عنوان ژورنال: Theoretical Computer Science
سال: 2021
ISSN: ['1879-2294', '0304-3975']
DOI: https://doi.org/10.1016/j.tcs.2021.02.040